#ifndef NEW_GOODSH_H_INCLUDED
#define NEW_GOODSH_H_INCLUDED
typedef struct Goods
{
    int num;
    char name[20];
    float price;
    int stock;
    struct Goods *Next;
}LinkGoods;

class G
{
public:
    void Menu();
    G();
    void Insert();
    void Show(int i);
    void Sort();
    void Print();
    void SaleGoods();
    void AddGoods();
    void ScanGoods();
    void Print_Ticket(LinkGoods p[], int Sum);
    SearchGood(LinkGoods *p, int tnum);
private:
    LinkGoods *head, *tail;
    int N = 0, M = 0;
};

#endif // NEW_GOODSH_INCLUDED
